package com.bwie.controller;

import com.bwie.service.TbExpressService;
import com.bwie.utils.R;
import com.bwie.vo.PageInfoVo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/express/index")
public class IndexController {
    @Resource
    TbExpressService tbExpressService;

    @PostMapping("/getExpressList")
    public R getExpressList(@RequestBody PageInfoVo pageInfoVo){
        return tbExpressService.getExpressList(pageInfoVo);

    }

}
